<%--
  Created by IntelliJ IDEA.
  rowingmanager.domain.User: Simon
  Date: 1.9.2009
  Time: 19:10:20
  To change this template use File | Settings | File Templates.
--%>

<%@ page contentType="text/html;charset=UTF-8" %>
<html>
  <head><title>Register a rower</title></head>
  <body>
   <g:form action="saveRower" method="post">
     <g:hasErrors bean="${rower}">
          <g:renderErrors bean="${rower}" as="list"/>
     </g:hasErrors>
    <label for="name">Name:</label>
    <input id="name" name="name"/>       <br/>

     <label for="surname">Lastname:</label>
     <input id="surname" name="surname"/>       <br/>

     <label for ="street">Street:</label>
     <input id="street" name="street"/>  <br/>

     <label for ="city">City:</label>
     <input id="city" name="city"/>  <br/>

     <label for ="postalCode">Postal code:</label>
     <input id="postalCode" name="postalCode"/>  <br/>

     <label for ="state">State:</label>
     <input id="state" name="state"/>  <br/>

     <label for="country">Country: </label>
     <g:select id="country" name="country"  from="${clist}" optionKey="id"/>  <br/>

     <label>Birthday:</label>
     <g:datePicker name="birthday" value="${new Date()}" noSelection="['':'-Choose-']" precision="day"/>       <br/>

     <label for="email">Email:</label>
     <input id="email" name="email"/>       <br/>

     <label for="password">Password:</label>
     <input id="password" name="password"/>      <br/>

     <label for="height">Height:</label>
     <input id="height" name="height"/>                <br/>

     <label for="weight">Weight:</label>
     <input id="weight" name="weight"/>            <br/>

     <label for="shoe">ShoeSize:</label>
     <input id="shoe" name="shoeSize"/>            <br/>

     <label for ="organization">Club:</label>
     <g:select name="organization" from="${organizations}" optionKey="id"/>
     <g:submitButton value="Save" name="sbutton"/>
   </g:form>

  </body>
</html>